<div class="layui-card" style="padding: 0px;border: none;margin-top: 0px;height: 100%;background: none;">
	<form id="vmodelForm" lay-filter="vmodelForm" class="layui-form model-form" style="padding:0px;height: 100%;">
		<input  name="id" type="hidden" />	
		<div class="layui-card-header scene-card-header" >
			  <button type="button" class="scene-btn" id="vmodelPositionBtn" title="定位"><i class="fa fa-paper-plane-o"></i></button>
			  <!-- <button type="button" class="scene-btn" id="vmodelPickPositionBtn" title="拾取位置"><i class="fa fa-map-marker"></i></button> -->
			  <!-- <button type="button" class="scene-btn" id="vmodelTranslationBtn" title="平移"><i class="fa fa-arrows"></i></button> -->
			  <button type="button" class="scene-btn" id="vmodelUploadVideoBtn" title="上传视频文件"><i class="fa fa-upload"></i></button>
			  <!-- <button type="button" class="scene-btn" id="vmodelExchangeBtn" title="替换"><i class="fa fa-exchange"></i></button> -->
			  <button type="button" class="scene-btn" id="vmodelDeleteBtn" title="删除"><i class="fa fa-trash-o"></i></button>
			  <button type="button" class="scene-btn" lay-filter="vmodelSubmitForm" lay-submit  title="保存"><i class="fa fa-save"></i></button>
		</div>
		<div class="layui-card-body" style="height: 100%;padding: 0px;">
			<div class="layui-tab layui-tab-card" style="padding: 0px;border: none;margin-top: 0px;width: 100%;height: 100%;">
			  <div class="layui-tab-content" style="padding:0px;height: calc(100% - 75px);">
			    <div class="layui-tab-item " >
					<table class="formTable">		
						<tr>
							<td>名称</td>
							<td >
								<input id="vmodel-name-input" value="#(vmodel?vmodel.name:'')" name="name"  placeholder="" autocomplete="off"   type="text" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>
						<tr>
							<td>标识</td>
							<td >
								<input id="vmodel-code-input" value="#(vmodel?vmodel.code:'')" name="code"  placeholder="" autocomplete="off"   type="text" class="layui-input" />
							</td>
						</tr>
						<tr>
							<td colspan="2" style="text-align: center;">
								<img id="vmodel-thumbnail-img" src="#(ctx)#(vmodel?vmodel.thumbnail:'/assets/img/thum-default.jpg')" style="width:180px;height:180px;">
							</td>
						</tr>											
					</table>
			    </div>
			    <div class="layui-tab-item" >
					<table class="formTable">
						<tr>
							<td>经度</td>
							<td >
								<input id="vmodel-x-input" value="#(vmodel?vmodel.x:'')" name="x" readonly="readonly"  placeholder="" autocomplete="off"   type="text" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>
						<tr>
							<td>纬度</td>
							<td >
								<input id="vmodel-y-input" value="#(vmodel?vmodel.y:'')" name="y" readonly="readonly"  placeholder="" autocomplete="off"   type="text" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>
						<tr>
							<td>高度</td>
							<td >
								<input id="vmodel-z-input" value="#(vmodel?vmodel.z:'')" name="z" placeholder="" autocomplete="off"   type="number" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>
						<tr>
							<td>方位角</td>
							<td >
								<input id="vmodel-heading-input" value="#(vmodel?vmodel.heading:0)" name="heading"  placeholder="" autocomplete="off"   type="number" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>
						<tr>
							<td>俯仰角</td>
							<td >
								<input id="vmodel-pitch-input" value="#(vmodel?vmodel.pitch:0)" name="pitch"  placeholder="" autocomplete="off"   type="number" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>	
						<tr>
							<td>翻滚角</td>
							<td >
								<input id="vmodel-roll-input" value="#(vmodel?vmodel.roll:0)" name="roll"  placeholder="" autocomplete="off"   type="number" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>
						<tr>
							<td>缩放x</td>
							<td >
								<input id="vmodel-scaleX-input" value="#(vmodel?vmodel.scaleX:1)" name="scaleX" min=0.01 step=0.01  placeholder="" autocomplete="off"   type="number" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>
						<tr>
							<td>缩放y</td>
							<td >
								<input id="vmodel-scaleY-input" value="#(vmodel?vmodel.scaleY:0)" name="scaleY"  min=0.01 step=0.01  placeholder="" autocomplete="off"   type="number" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>	
						<tr>
							<td>缩放z</td>
							<td >
								<input id="vmodel-scaleZ-input" value="#(vmodel?vmodel.scaleZ:1)" name="scaleZ" min=0.01 step=0.01  placeholder="" autocomplete="off"   type="number" class="layui-input" maxlength="50" lay-verType="tips" lay-verify="required" required/>
							</td>
						</tr>	
						<tr>
							<td>相对路径</td>
							<td >
						      <select name="isRelative" lay-filter="isRelative">
						      	<option value="" >--请选择--</option>
						        <option value="0" #if(vmodel&&vmodel.isRelative=='0') selected #end>否</option>
						        <option value="1" #if(vmodel&&vmodel.isRelative=='1') selected #end>是</option>
						      </select>	
							</td>
						</tr>											
					</table>
			    </div>  
			    <div class="layui-tab-item layui-show" >
					<table class="formTable">
						<tr>
							<td>视频类型</td>
							<td >
						      <select name="videoType" lay-filter="videoType">
						      	<option value="" >--请选择--</option>
						        <option value="0" #if(vmodel&&vmodel.videoType=='0') selected #end>File</option>
						        <option value="1" #if(vmodel&&vmodel.videoType=='1') selected #end>webRTC</option>
						      </select>	
							</td>
						</tr>					
						<tr>
							<td>URL</td>
							<td >
								<input  value="#(vmodel?vmodel.videoUrl:'')" class="layui-input"  name="videoUrl"  autocomplete="off"   />
							</td>
						</tr>
						<tr>
							<td>相对路径</td>
							<td >
						      <select name="videoRelative" lay-filter="videoRelative">
						      	<option value="" >--请选择--</option>
						        <option value="0" #if(vmodel&&vmodel.videoRelative=='0') selected #end>否</option>
						        <option value="1" #if(vmodel&&vmodel.videoRelative=='1') selected #end>是</option>
						      </select>	
							</td>
						</tr>						
						<tr id="vmodel-webRTCUrl-input-tr">
							<td>webRTC</td>
							<td >
								<input id="vmodel-webRTCUrl-input" value="#(vmodel?vmodel.webRTCUrl:'')" name="webRTCUrl" class="layui-input"/>
							</td>
						</tr>
						<tr id="vmodel-videoId-input-tr">
							<td>webRTCID</td>
							<td >
								<input id="vmodel-videoId-input" value="#(vmodel?vmodel.videoId:'')" name="videoId" class="layui-input"/>
							</td>
						</tr>						
					</table>
			    </div> 
			    <div class="layui-tab-item" >
				    <div class="layui-card" style="padding: 0px;border: none;margin-top: 0px;height: 100%;background: none;">
						<div class="layui-card-header vmodel-card-header" >
							<button id="addModelPropertyBtn" type="button" title="添加扩展属性" class="vmodel-btn"><i class="fa fa-plus"></i></button>
						</div>				    
				        <div class="layui-card-body" style="padding: 0px;margin-top: -16px;">
				            <table class="layui-table" id="tableModelProperty" lay-filter="tableModelProperty"></table>
				        </div>
				    </div>			    
			    </div>	
			  </div>
			  <ul class="layui-tab-title layui-tab-title-city"  style="bottom: 5px; line-height: 35px;">
			  	<li  style="line-height: 35px;">属性</li>
			  	<li  style="line-height: 35px;">坐标</li>
			  	<li  style="line-height: 35px;" class="layui-this">视频</li>
			  	<li  style="line-height: 35px;" >扩展</li>
			  </ul> 		
			</div>
		</div>
	</form>
</div>

